<?php /*a:4:{s:74:"E:\soft\phpstudy_pro\WWW\dw\application\admin\view\goods\order_detail.html";i:1589188668;s:67:"E:\soft\phpstudy_pro\WWW\dw\application\admin\view\public\base.html";i:1577070354;s:69:"E:\soft\phpstudy_pro\WWW\dw\application\admin\view\public\header.html";i:1577071515;s:69:"E:\soft\phpstudy_pro\WWW\dw\application\admin\view\public\footer.html";i:1577071509;}*/ ?>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="Bookmark" href="/favicon.ico" >
<link rel="Shortcut Icon" href="/favicon.ico" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5shiv.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="/static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="/static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="/static/lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="/static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="/static/h-ui.admin/css/style.css" />
<script type="text/javascript" src="/static/lib/jquery/1.9.1/jquery.min.js"></script> 
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->


<link rel="stylesheet" type="text/css" href="/static/css/boxImg.css">
<style type="text/css">
	.attrs{margin-top:5px;}
	.attrname{width:100px;border:solid 1px #ddd;height:31px;font-size:14px;padding-left:4px;}
	.attrval{width:40%;border:solid 1px #ddd;height:31px;font-size:14px;padding-left:4px;}
</style>
<title>订单详情</title>
</head>
<body>
<article class="page-container">
	<form class="form form-horizontal" id="form-admin-add">
		<input type="hidden" class="input-text" value="<?php echo htmlentities($data['id']); ?>" id="id" name="id">
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">产品：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<?php echo htmlentities($data['title']); ?>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">图片：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<img modal="zoomImg" style="width:50%" src="<?php echo htmlentities($data['img']); ?>">
				<!-- <img border="0" src="<?php echo htmlentities($data['img']); ?>" onmousewheel="return rollImg(this)"> -->
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">收货人：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<?php echo htmlentities($data['name']); ?>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">收货人电话：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<?php echo htmlentities($data['address_phone']); ?>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">收货地址：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<?php echo htmlentities($data['address']); ?>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">订单号：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<?php echo htmlentities($data['order_no']); ?>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">积分单价：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<?php echo htmlentities($data['score']); ?>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">购买数量：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<?php echo htmlentities($data['buy_num']); ?>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">支付积分：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<?php echo htmlentities($data['scores']); ?>
			</div>
		</div>
		<?php if($data['state']==1): ?>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">快递公司：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" value="<?php echo htmlentities($data['express_company']); ?>" placeholder="快递公司" id="express_company" name="express_company">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">快递单号：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" value="<?php echo htmlentities($data['express_no']); ?>" placeholder="快递单号" id="express_no" name="express_no">
			</div>
		</div>
		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
				<input id="submit" class="btn btn-primary radius" type="button" value="&nbsp;&nbsp;发货&nbsp;&nbsp;">
			</div>
		</div>
		<?php else: ?>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">快递公司：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<?php echo htmlentities($data['express_company']); ?>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">快递单号：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<?php echo htmlentities($data['express_no']); ?>
			</div>
		</div>
		<?php endif; ?>
	</form>
</article>


<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/jquery.validate.js"></script> 
<script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/validate-methods.js"></script> 
<script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/messages_zh.js"></script> 
<script type="text/javascript" src="/static/js/boxImg.js"></script> 
<script type="text/javascript">

$("#submit").click(function() {
	layer.load(1, {
	  shade: [0.1,'#fff'] //0.1透明度的白色背景
	});
	var id=$("input[name=id]").val();
	var express_company=$("input[name=express_company]").val();
	var express_no=$("input[name=express_no]").val();
    $.ajax({
	    type: 'POST',
	    url: "<?php echo url('order_detail'); ?>",
	    data: {id:id,express_company:express_company,express_no:express_no},
	    success: function(resdata){
	        if(resdata.code==200){
				layer.msg(resdata.msg,{icon:1,time:1000});
				setTimeout("location.reload()",1000);
	        }else{
				layer.msg(resdata.msg,{icon:2,time:3000});
	        }
	    },
	    error: function(){
			layer.msg('数据保存失败',{icon:2,time:3000});
	    }
	})
})
</script> 

<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="/static/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="/static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="/static/h-ui.admin/js/H-ui.admin.js"></script>
<!--/_footer 作为公共模版分离出去-->
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="/static/lib/jquery.contextmenu/jquery.contextmenu.r2.js"></script>
</body>
</html>